package scala.com.shujia.jichu

/**
 * 大小,值是固定的，根据创建的类来定，每个元素的数据类型可以是不一样，最高可以创建存储22个元素的元组
 */
object Demo17Tuple {
  def main(args: Array[String]): Unit = {

    val t1: (Int, String, String, Int, String) = Tuple5(1001, "易政", "男", 17, "学习")

    println("=" * 50)
    val s2: Student1 = new Student1(1002, "盛宇豪", 18, "看剧")
    val t2: (Int, Student1) = Tuple2(1002, s2)
    println(t2._2.name)



  }
}

case class Student1(id: Int, name: String, age: Int, like: String)
